import request from '@/plugins/request';
// 账号列表
export function accountList(data) {
    return request({
      url: "/v1/buss/accounts/index",
      method: "get",
      params: data,
    });
}
  
  //新增、更新账号
export function createAccount(data) {
    return request({
        url: "/v1/buss/accounts/update",
        method: "post",
        data,
    });
}
// 账号详情
export function accountInfo(data) {
    return request({
      url: "/v1/buss/accounts/info",
      method: "get",
      params: data,
    });
}
//删除账号
export function deleteAccount(data) {
    return request({
        url: "/v1/buss/accounts/delete",
        method: "post",
        data,
    });
}

//批量设置运营
export function accountSetPrincipal(data) {
    return request({
        url: "/v1/buss/accounts/set-principal",
        method: "post",
        data,
    });
}
//更新粉丝记录
export function accountsupdateFans(data) {
    return request({
        url: "/v1/buss/accounts/update-fans",
        method: "post",
        data,
    });
}
// 粉丝更新列表
export function accountFansList(data) {
    return request({
      url: "/v1/buss/accounts/get-fans-list",
      method: "get",
      params: data,
    });
}

// 投流消费列表
export function consumeList(data) {
    return request({
      url: "/v1/buss/accounts/consume",
      method: "get",
      params: data,
    });
}
//新增投流消费记录
export function consumeCreate(data) {
    return request({
        url: "/v1/buss/accounts/create-consume",
        method: "post",
        data,
    });
}
//编辑投流消费记录
export function consumeUpdate(data) {
    return request({
        url: "/v1/buss/accounts/update-consume",
        method: "post",
        data,
    });
}
//编辑投流消费记录数据
export function consumeDataUpdate(data) {
    return request({
        url: "/v1/buss/accounts/update-consume-data",
        method: "post",
        data,
    });
}
//删除消费
export function consumeDel(data) {
    return request({
        url: "/v1/buss/accounts/delete-consume",
        method: "post",
        data,
    });
}
// 根据项目获取医生列表
export function getListByProject(data) {
    return request({
      url: "/v1/buss/accounts/get-list-by-project",
      method: "get",
      params: data,
    });
}
